package com.smartfactory.sail.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.smartfactory.sail.entity.enums.ItemStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 物料表,生产原料,原料,产品表
 * </p>
 *
 * @author 王巨壁
 * @since 2019-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Item对象", description = "物料表,生产原料,原料,产品表")
public class Item implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "描述没有默认就使用name的值")
    private String info;

    @ApiModelProperty(value = "图纸编号")
    @TableField("drawingCode")
    private String drawingCode;

    @ApiModelProperty(value = "材料质地")
    private String texture;

    @ApiModelProperty(value = "材质编码")
    @TableField("textureCode")
    private String textureCode;

    @ApiModelProperty(value = "1产品2原料具体参考constants")
    @TableField("itemMode")
    private Integer itemMode;

    @ApiModelProperty(value = "类型id-参考item_type表")
    @TableField("itemTypeId")
    private Long itemTypeId;

    @ApiModelProperty(value = "规格型号")
    private String specification;

    @ApiModelProperty(value = "质量")
    private String quality;

    @ApiModelProperty(value = "报废率百分比")
    @TableField("scrapRate")
    private Integer scrapRate;

    @ApiModelProperty(value = "保管注意事项")
    private String note;

    @ApiModelProperty(value = "质保时间单位:天")
    @TableField("guaranteePeriod")
    private Integer guaranteePeriod;

    @ApiModelProperty(value = "领取上限")
    @TableField("receiveUpperLimit")
    private Integer receiveUpperLimit;

    @ApiModelProperty(value = "多个生产图纸id用符号|隔开")
    @TableField("productDrawings")
    private String productDrawings;

    @ApiModelProperty(value = "客户图纸多个用|隔开")
    @TableField("custDrawings")
    private String custDrawings;

    @ApiModelProperty(value = "技术图纸多个用|隔开")
    @TableField("technicalDrawings")
    private String technicalDrawings;

    @ApiModelProperty(value = "供应商列表用|隔开")
    private String suppliers;

    @ApiModelProperty(value = "状态 0出样中 1在产 2停产 参考constants表")
    private ItemStatusEnum status;

    @ApiModelProperty(value = "时产能")
    private Integer hourlyCapacity;

    @ApiModelProperty(value = "创建人")
    @TableField("createUser")
    private String createUser;

    @ApiModelProperty(value = "创建时间yyyy-MM-dd HH:mm:ss")
    @TableField("createTime")
    private String createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("updateUser")
    private String updateUser;

    @ApiModelProperty(value = "更新时间yyyy-MM-dd HH:mm:ss")
    @TableField("updateTime")
    private String updateTime;


}
